package com.design.proxy.file;

// 真实文件类
class RealFile implements File {
    private String filename;

    public RealFile(String filename) {
        this.filename = filename;
        loadFromDisk();
    }

    @Override
    public void read() {
        System.out.println("Reading file: " + filename);
    }

    private void loadFromDisk() {
        System.out.println("Loading file from disk: " + filename);
    }
}
